package provider

import (
	"gorm.io/driver/postgres"
	"gorm.io/gorm"
)

func GetEm()(db *gorm.DB, err error)  {
	dsn := "host=localhost user=postgres password=admin123 dbname=gorm port=5432 sslmode=disable TimeZone=Asia/Shanghai"
	Em, err := gorm.Open(postgres.Open(dsn), &gorm.Config{})
	return Em,err
}